using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Sqlite;

namespace FlosVita.Model;

public class FlosVitaDBContext : DbContext
{
   public DbSet<Customer> Customers {get; set;}
   public DbSet<Family> Families { get; set;}
   //public DbSet<Symptom> Symptoms { get; set; }
   //public DbSet<Disease> Diseases { get; set; }
   //public DbSet<Medicine> Medicines { get; set; }

   public FlosVitaDBContext(DbContextOptions<FlosVitaDBContext> options) : base(options) {}

   protected override void OnModelCreating(ModelBuilder modelBuilder)
   {
        modelBuilder.ApplyConfigurationsFromAssembly(typeof(FlosVitaDBContext).Assembly);
   }
}
